package cn.com.taurus.impl;

import cn.com.taurus.entity.Admins;
import cn.com.taurus.mapper.AdminsMapper;
import cn.com.taurus.service.AdminsService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author zhy
 * @createTime 2021-6-23 16:40:24
 * @remark 后台人员Impl层
 * @version 1.0
 */
@Repository
public class AdminsImpl implements AdminsService {
    @Autowired
    AdminsMapper adminsMapper;
    @Override
    public Admins selectAdmisByAAccount(String aAccount) { return adminsMapper.selectAdmisByAAccount(aAccount); }
    @Override
    public int adminsUpdate(Admins admins){
        return adminsMapper.adminsUpdate(admins);
    }
    @Override
    public int amendAdmins(Admins admins){
        return adminsMapper.amendAdmins(admins);
    }
    @Override
    public Integer updateAImgUrl(@Param("aImgUrl") String aImgUrl, @Param("aAccount") String aAccount) {
        return adminsMapper.updateAImgUrl(aImgUrl,aAccount);
    }

    @Override
    public List<Admins> selectAdmins(){
        return adminsMapper.selectAdmins();
    }
    @Override
    public List<Admins> selectConditionAdmins(Admins admins){
        return adminsMapper.selectConditionAdmins(admins);
    }
    @Override
    public Integer addAdmins(Admins admins){
        return adminsMapper.addAdmins(admins);
    }
    @Override
    public Integer deleteByAId(Integer aId){
        return adminsMapper.deleteByAId(aId);
    }

}
